package com.dt76.smallloanbackendservice.mapper.lhuaw;

import com.dt76.smallloanbackendservice.pojo.lhuaw.SystemMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface SystemMessageMapper {
    //系统消息的查询
    List<SystemMessage> getAll();
    //动态查询+分页
    List<SystemMessage> qryConditionPageAll(
            @Param("start") int start,
            @Param("size") int size,
            @Param("messageTitle") String messageTitle,
            @Param("publisher") String publisher);
    int qryConditionCount(@Param("messageTitle") String messageTitle,
                          @Param("publisher") String publisher);
    //删除
    void deleteSystem(@Param("sId") int sId);
    //新增
    int saveSystem(SystemMessage systemMessage);
    //查看
    SystemMessage seeSystem(@Param("sId") int sId);
}
